package com.woniuxy.kaer.service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 程诗洋
 * @since 2025年02月17日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("service_order")
public class ServiceOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 雪花或者UUID
     */
    //@TableId(value = "service_order_id", type = IdType.AUTO)
    @TableId(value = "service_order_id",type = IdType.ASSIGN_ID)
    private String serviceOrderId;

    @TableField("shop_id")
    private Integer shopId;

    @TableField("user_id")
    private Integer userId;

    @TableField("car_id")
    private Integer carId;

    @TableField("total_price")
    private BigDecimal totalPrice;

    @TableField("appointed_name")
    private String appointedName;

    @TableField("appointment_time")
    private LocalDateTime appointmentTime;

    @TableField("appointed_mobile")
    private String appointedMobile;

    @TableField("service_order_state")
    private Integer serviceOrderState;

    @TableField("service_order_remark")
    private String serviceOrderRemark;

    @TableField("cancel_reason")
    private String cancelReason;

    @TableField("create_time")
    private String createTime;

    @TableField("update_time")
    private String updateTime;

    /**
     * 评分
     */
    @TableField("evaluate_score")
    private Integer evaluateScore;

    /**
     * 关联服务详情表
     */
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 0.待支付1.已支付
     */
    @TableField("pay_state")
    private Integer payState;

    @TableField("service_base_id")
    private Integer serviceBaseId;

    @TableField("license_plate")
    private String licensePlate;

    @TableField("car_brand")
    private String carBrand;

    @TableField("car_type")
    private String carType;

    @TableField("mileage")
    private Integer mileage;


}
